package com.whj.apipassenger.remote;

import com.whj.internalcommon.dto.ResponseResult;
import com.whj.internalcommon.request.OrderRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: wanghaijun
 * @Date: 2023/1/28 - 01 - 28 - 15:01 
 * @Description: com.whj.apipassenger.remote
 */

@FeignClient("service-order")
public interface ServiceOrderClient {

    @RequestMapping(method = RequestMethod.POST,value = "/order/add")
    ResponseResult orderAdd(@RequestBody OrderRequest orderRequest);

    @RequestMapping(method = RequestMethod.GET,value = "/test/{orderId}")
    String dispatchRealTimeOrder(@PathVariable("orderId") Long orderId);

    @RequestMapping(method = RequestMethod.POST,value = "/order/cancel")
    ResponseResult cancel(@RequestParam Long orderId, @RequestParam String identity);
}

